package com.sunyard.constant;

public enum AdminResult implements IResult {
    OK(0, "ok"),
    SESSION_EXPIRED(1, "会话已过期"),
    PERMISSION_DENIED(2, "请求无权限"),
    INVALID_REQUEST_PARAM(3, "无效的请求参数"),
    INTERNAL_ERROR(900, "系统内部异常");
    private final Integer code;
    private final String message;

    AdminResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
